﻿<%@ Page Title="Category Management" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Steve.Category>>" %>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <div class="toolbar">
        <a class="new-document-button" href="/CategoryManagement/CategoryDetail/">Add Category</a>
    </div> 
    <table>
        <thead>
        <th>Name</th>
        <th>Weight</th>
        <th>Visible</th>
        </thead>
    <% foreach(var c in Model) { %>
        <tbody>
        <tr>
            <td><%: Html.ActionLink(c.CategoryDisplay, "CategoryDetail", "CategoryManagement", new { id = c.CategoryName }, null) %></td>
            <td><%: c.RelevancyWeight %></td>
            <td><%: c.IsSiteVisible %></td>
        </tr>
        </tbody>
    <% } %>
    </table>
</asp:Content>